Hi, the $branch variable defines either if you are on RPI 1 or 2 look at https://github.com/digitalLumberjack/recalbox-os/wiki/Compilation-&-Modifications-(EN)#a---compilation where you define the branch as recalbox or recalbox-rpi2 Everything is defined after this variable as you checkout the git branch and use your commands with this $branch If the command with recalbox-buildroot/output/images/rpi-firmware works so you are compiling for rpi1, and you did not defined your branch well on rpi2. You should delete all the repo and go back to the begining, reading carfully all lines of the wiki, and so defining the branch to "recalbox-rpi2"